const BoundAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

if (process.env.NODE_ENV === 'production') {
    module.exports = {
        devtool: false,
        plugins: [new BoundAnalyzerPlugin()],
        externals: {
            vue: 'Vue',
            vuex: 'Vuex',
            'vue-router': 'VueRouter',
            axios: 'axios'
        }
    }
} else {
    module.exports = {};
}